{extend name="common/common"/}

{block name="content-header"}
<h1>
    用户编辑
    <small>Optional description</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
    <li class="active">Here</li>
</ol>
{/block}

{block name="content"}
<form method="post" id="form-add" action="{:url('update')}">
    <div class="row">
        <div class="col-md-9">
            <input type="hidden" name="id" value="{$info['id']}">
            <div class="form-group">
                <label class="">账号</label>
                <input type="text" name="username" value="{$info['username']}" class="form-control">
                <p class="help-block"></p>
            </div>

            <div class="form-group">
                <label class="">密码</label>
                <input type="password" name="password" value="{$info['password']}" class="form-control">
                <input type="hidden" name="old_password" value="{$info['password']}">
                <p class="help-block"></p>
            </div>
            <div class="form-group">
                <label class="">余额</label>
                <input type="text" name="money" value="{$info['money']}" class="form-control">
                <p class="help-block"></p>
            </div>

        </div>
        <div class="col-md-3">
            <div class="box box-solid">
                <div class="box-header with-border">
                    <h3 class="box-title">更新</h3>
                    <div class="box-tools pull-right">
                        <button type="submit" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    </div>
                </div>
                <div class="box-body">
                    <div class="form-group">
                        <label class="control-label text-left">状态：</label>
                        <select name="status" class="form-control" style="width: auto; display: inline-block;">
                            <!--<option value="0" >待审</option>-->
                            <option value="1" {if condition="$info['status']['val'] eq 1"}selected{/if}>启用</option>
                            <option value="2" {if condition="$info['status']['val'] eq 2"}selected{/if}>禁用</option>
                        </select>
                    </div>
                </div>
                <div class="box-footer clearfix">
                    <button type="submit" id="submit" class="btn btn-primary pull-right">更新</button>
                </div>
            </div>


            <!--/.box-->
        </div>
    </div>
</form>
{/block}